//
//  KnowledgeTableviewCell.m
//  ProjectA
//
//  Created by lioccord on 15-3-6.
//  Copyright (c) 2015年 李赐岩 姜雪 张昕锐. All rights reserved.
//

#import "KnowledgeTableviewCell.h"

@implementation KnowledgeTableviewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setSubViews];
    }
    return self;
} //init


-(void)setSubViews{
    
    //INDEX IMAGEVIEW
    self.indexImageV = [[UIImageView alloc] init];
    
    [self.indexImageV setImage:[UIImage imageNamed:@"index.png"]];
    
    self.indexImageV.frame = CGRectMake(12, 5, 32, 32);
    
    [self.contentView addSubview:self.indexImageV];
    
    //INDEX LABEL
    self.indexLabel = [[UILabel alloc] initWithFrame:CGRectMake(13, 5, 30, 30)];
    self.indexLabel.text = [NSString stringWithFormat:@"%d", 1];
    self.indexLabel.textAlignment = NSTextAlignmentCenter;
    self.indexLabel.textColor = [UIColor whiteColor];
    
    [self.contentView addSubview:self.indexLabel];
    
    
    //TITLE LABEL
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(60, 5, 300, 30)];
    self.titleLabel.text = @"123";
    
    
    [self.contentView addSubview:self.titleLabel];
    
    
    
    
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
